package catchData.startup;

import java.util.ArrayList;
import java.util.List;

import catchData.core.CatchGet1;

public class Thread4CatchGet1 {

	private static List<CatchGet1> webList = new ArrayList<CatchGet1>();
	
	private void addList() {
//		webList.add(new CatchGet1("http://www.cdjq.net/peisong/ps.asp?page=", "E:/downloadData/test", 1, 10, "utf-8", ""));
//		webList.add(new CatchGet1("http://drugs.gdmpc.cn/login/getcommodityprovincesprice?com.pagesize=2147483647&com.pageindex=0&com.recordcount=0&start=", 
//				"E:/downloadData/test/四省基药参考价格查询-2013.1.5", 1, 10, "gbk", "&size=10&_=1357354228220"));
//		webList.add(new CatchGet1("http://www.zgyyjgw.com/front/cn/gs/publityUser/31?pageSize=50&pageNumber=",
//				"I:/data/CHD/tender/中国医药价格", 1, 40, "UTF-8",""));
		webList.add(new CatchGet1("http://202.100.81.115:8080/bdcp/tender/bid-oneshow!bidResult.do?pageNo=",
				"I:/data/CHD/tender/2013年甘肃省医疗卫生机构基础大输液类药品集中采购中标结果", 1, 27, "UTF-8",""));
	}
	
	private void excute() {
		for (int i = 0; i < webList.size(); i++) {
			CatchGet1 o = new CatchGet1(webList.get(i).getWebURL(),webList.get(i).getFolderPath(), webList.get(i).getStartPage(),
					webList.get(i).getEndPage(), webList.get(i).getEncode(), webList.get(i).getOtherParams());
			new Thread(o).start();
		}
	}
	
	public static void main(String[] args) {
		Thread4CatchGet1 instance = new Thread4CatchGet1();
		instance.addList();
		instance.excute();
	}
}
